package com.example.function.project.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.project.model.one.ProjectStage;
import com.example.function.project.service.IProjectStageService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <ProjectStagePojo vo>. <br>
 * <p>
 * generate time:2021-7-27 15:48:58
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class ProjectStagePojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 阶段id
     */
    private Long id;


    /*
     * 阶段名称
     */
    private String stageName;


    /**
     * 实体对象复制到数据对象
     */
    public static ProjectStagePojo wrapper(ProjectStage projectStage) {
        ProjectStagePojo projectStagePojo = new ProjectStagePojo();
        BeanUtils.copyProperties(projectStage, projectStagePojo);
        final IProjectStageService projectStageService = (IProjectStageService) ApplicationContextProvider.getBean("projectStageService");

        return projectStagePojo;
    }

}



